package spring.superrun.record.mvc.entity.enumlibs;

/**
 * 响应码枚举
 */
public enum ServiceResultCode {
    /// <summary>
    /// 成功
    /// </summary>
    Succeed(0),

    /// <summary>
    /// 失败
    /// </summary>
    Failed(1),
    /// <summary>
    /// 未认证
    /// </summary>
    Unauthorized(2),
    /// <summary>
    /// 权限不足
    /// </summary>
    Forbidden(3),
    /// <summary>
    /// 过多请求
    /// </summary>
    TooManyRequests(4),
    /// <summary>
    /// 没有找到
    /// </summary>
    NotFound(5),
    /// <summary>
    /// 数据验证失败
    /// </summary>
    UnprocessableEntity(6),
    /// <summary>
    /// 跑腿任务添加成功但是订单未创建成功
    /// </summary>
    RunLegIsSuccessButOrderIsFailed(7),
    /// <summary>
    /// 价格不对称
    /// </summary>
    TotalFeelIsError(8),
    /// <summary>
    /// 键为空
    /// </summary>
    KeyIsNull(9),
    /// <summary>
    /// 是否冻结或通用
    /// </summary>
    IsStop(10),
    /// <summary>
    /// 预留请求
    /// </summary>
    PaymentRequired(11),
    /**
     * 值重复
     */
    Repeat(12);

    private  int index;
    private ServiceResultCode(int index){
        this.index = index;
    }

    public int getIndex() {
        return index;
    }
}
